<div class="nav">
    <a href="{:U('content',array('block_id'=>$block_id))}">返回模块内容列表</a>
    <a class="sel" href="#">编辑内容</a>
</div>
<div class="add">
    <form method="post" action="" >
        <table class="table_add">
            <tr>
                <td width="100px">商品名称</td>
                <td><input class="input1" type="text" name="goods_name" id="goods_name" value="{:$model['goods_name']?$model['goods_name']:$model2['goods_name']}" style="width:500px" /> </td>
            </tr>
            <tr>
                <td width="100px">促销信息</td>
                <td><input class="input1" type="text" name="cuxiao_msg" id="cuxiao_msg" value="{:$model['cuxiao_msg']?$model['cuxiao_msg']:$model2['cuxiao_msg']}" style="width:500px" /> </td>
            </tr>
            <tr>
                <td width="100px">价格</td>
                <td><input class="input1" type="text" name="price" id="price" value="{:$model['price']?$model['price']:$model2['price']}" style="width:80px" /> &nbsp;&nbsp;&nbsp;
                市场价：<input class="input1" type="text" name="price_market" id="price_market" value="{:$model['price_market']?$model['price_market']:$model2['price_market']}" style="width:80px" />
                </td>
            </tr>
            <tr>
                <td>图片</td>
                <td>
                <include file="Public/uploadfile" filetype="image" id="picture"  value="{$model.picture}" editvalue="{:getEditFiles($model['picture'])}" width="100" path="index" limit="1" thumbw="" thumbh="" msg=""/>
            </td>
            </tr>
            <tr>
                <td width="100px">链接地址</td>
                <td><input class="input1" type="text" name="url" id="url" value="{:$model['url']?$model['url']:'/Goods/index/index/'.$model2['goods_id']}" style="width:500px" /> </td>
            </tr>
            <tr>
                <td width="100px">顺序编号</td>
                <td><input class="input1" type="text" name="order_id" id="order_id" value="{$model.order_id}" style="width:60px" /> <span class="msg">*</span></td>
            </tr>
            <tr>
                <td width="100px">是否显示</td>
                <td><select name="is_show" id="is_show" class="sel1">
                        <option value="1">显示</option>
                        <option value="0">不显示</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" class="btn1" value="提 交" />  &nbsp; <input class="btn3"  type="button" onclick="window.history.back()" value="返 回" /></td>
            </tr>
        </table>
        <input type="hidden" name="id" value="{$model.id}" />
    </form>
    <script type="text/javascript">
        $("#is_show").val("{$model.is_show}");
    </script>
</div>
